//
//  GPContactHeaderView.m
//  Keping
//
//  Created by 23 on 2017/12/7.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import "GPContactHeaderView.h"

@interface GPContactHeaderView ()

@property (weak, nonatomic) IBOutlet UIButton *indicatorView;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *numberLabel;


@end

@implementation GPContactHeaderView

+ (instancetype)headerView
{
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].firstObject;
}


- (void)awakeFromNib
{
    [super awakeFromNib];
    
    
    [self addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapHeader)]];
}

- (void)tapHeader
{
    
    
    if (self.callback) {
        self.callback();
    }
    
}

@end
